$execute if data entity @n[tag=VoidShop.slot,type=item_display,distance=..10,nbt={item:{components:{"minecraft:custom_data":{VoidShopSlot:{id:$(Slotid)}}}}}] item.components."minecraft:custom_data".VoidShopSlot{isNull:true} run return run scoreboard players set #success temp 1

function vs:system/game_ctrol/void_shop/page_button/get_last_notnull_slot_index/try_next